<!doctype html>


<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>DateTimeParse (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>

  <script type="text/javascript" src="//www.google.com/jsapi"></script>
  <script type="text/javascript">
     google.load("visualization", "1", {packages:["orgchart"]});
     var _loadingVisualizations = true;
  </script>

  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>





<div class="colmask rightmenu">
<div class="colleft">
    <div class="col1">
      <!-- Column 1 start -->

<div id="title">
        <span class="fn">i18n.DateTimeParse</span>
        <span>Extends</span>
        <span class="fn-name">
          
        </span>
</div>

<div class="g-section g-tpl-75-25">
  <div class="g-unit g-first" id="description">
    Construct a DateTimeParse based on current locale.

  </div>


        <div class="g-unit" id="useful-links">
          <div class="title">Useful links</div>
          <ol>
            <li><a href="local_closure_goog_i18n_datetimeparse.js.source.html"><span class='source-code-link'>Source Code</span></a></li>
            <li><a href="http://code.google.com/p/closure-library/source/browse/local/closure/goog/i18n/datetimeparse.js">Git</a></li>
          </ol>
        </div>
</div>






<h2 class="g-first">Inheritance</h2>
<div class='gviz-org-chart-container goog-inline-block'>
<table class='gviz-org-chart' style='display:none'>
  <tr><td>goog.i18n.DateTimeParse</td><td></td></tr>
</table>
</div>
<div class='gviz-org-chart-container goog-inline-block'>
<table class='gviz-org-chart' style='display:none'>
</table>
</div>




  <h2>Constructor</h2>
      <div class="fn-constructor">
    goog.i18n.DateTimeParse(<span><span class="arg">pattern</span></span>)
  </div>

   <h3>Parameters</h3>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">pattern</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span><span>&nbsp;|&nbsp;</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">pattern specification or pattern type.</div>
     </td>
   </tr>
  </table>


<h2>Instance Methods</h2>


  <div class="legend">
        <span class="key publickey"></span><span>Public</span>
        <span class="key protectedkey"></span><span>Protected</span>
        <span class="key privatekey"></span><span>Private</span>
  </div>







<div>
       <div class="desc">
         Defined in
         <span class="fn-name">
            <a href="class_goog_i18n_DateTimeParse.html">
              goog.i18n.DateTimeParse
            </a>
         </span>
       </div>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.i18n.DateTimeParse.prototype.applyPattern_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">applyPattern_<span class="args">(<span class="arg">pattern</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Apply a pattern to this Parser. The pattern string will be parsed and saved
in "compiled" form.
Note: this method is somewhat similar to the pattern parsing method in
      datetimeformat. If you see something wrong here, you might want
      to check the other.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">pattern</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">It describes the format of date string that need to
    be parsed.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line160">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.i18n.DateTimeParse.prototype.applyStandardPattern_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">applyStandardPattern_<span class="args">(<span class="arg">formatType</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Apply a predefined pattern to this Parser.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">formatType</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">A constant used to identified the predefined
    pattern string stored in locale repository.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line228">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.i18n.DateTimeParse.prototype.getNextCharCount_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">getNextCharCount_<span class="args">(<span class="arg">pattern</span>,&nbsp;<span class="arg">start</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
      </div>


     <div class="entryOverview">
       Calculate character repeat count in pattern.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">pattern</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">It describes the format of date string that need to
    be parsed.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">start</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">The position of pattern character.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&nbsp;
            Repeat count.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line394">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.i18n.DateTimeParse.prototype.internalParse_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">internalParse_<span class="args">(<span class="arg">text</span>,&nbsp;<span class="arg">date</span>,&nbsp;<span class="arg">start</span>,&nbsp;<span class="arg">validation</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
      </div>


     <div class="entryOverview">
       Parse the given string and fill info into date object.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">text</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The string being parsed.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">date</span>
        : <span class="type">goog.date.DateLike</span>
        <div class="entryOverview">The Date object to hold the parsed date.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">start</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">The position from where parse should begin.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">validation</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
        <div class="entryOverview">If true, input string need to be a valid
    date/time string.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&nbsp;
            How many characters parser advanced.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line292">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.i18n.DateTimeParse.prototype.isNumericField_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">isNumericField_<span class="args">(<span class="arg">part</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Check if the pattern part is a numeric field.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">part</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></span>
        <div class="entryOverview">pattern part to be examined.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            true if the pattern part is numeric field.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line427">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.i18n.DateTimeParse.prototype.markAbutStart_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">markAbutStart_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Identify the start of an abutting numeric fields' run. Taking pattern
"HHmmss" as an example. It will try to parse 2/2/2 characters of the input
text, then if that fails, 1/2/2. We only adjust the width of the leftmost
field; the others remain fixed. This allows "123456" =&gt; 12:34:56, but
"12345" =&gt; 1:23:45. Likewise, for the pattern "yyyyMMdd" we try 4/2/2,
3/2/2, 2/2/2, and finally 1/2/2. The first field of connected numeric
fields will be marked as abutStart, its width can be reduced to accommodate
others.


     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line449">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.i18n.DateTimeParse.prototype.matchString_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">matchString_<span class="args">(<span class="arg">text</span>,&nbsp;<span class="arg">pos</span>,&nbsp;<span class="arg">data</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
      </div>


     <div class="entryOverview">
       Attempt to match the text at a given position against an array of strings.
Since multiple strings in the array may match (for example, if the array
contains "a", "ab", and "abc", all will match the input string "abcd") the
longest match is returned.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">text</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The string to match to.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">pos</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&gt;
        <div class="entryOverview">parsing position.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">data</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&gt;
        <div class="entryOverview">The string array of matching patterns.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&nbsp;
            the new start position if matching succeeded; a negative
    number indicating matching failure.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line877">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.i18n.DateTimeParse.prototype.parse"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">parse<span class="args">(<span class="arg">text</span>,&nbsp;<span class="arg">date</span>,&nbsp;<span class="arg">opt_start</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
      </div>


     <div class="entryOverview">
       Parse the given string and fill info into date object. This version does
not validate the input.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">text</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The string being parsed.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">date</span>
        : <span class="type">goog.date.DateLike</span>
        <div class="entryOverview">The Date object to hold the parsed date.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_start</span>
        : <span class="type">number=</span>
        <div class="entryOverview">The position from where parse should begin.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&nbsp;
            How many characters parser advanced.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line261">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.i18n.DateTimeParse.prototype.parseInt_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">parseInt_<span class="args">(<span class="arg">text</span>,&nbsp;<span class="arg">pos</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
      </div>


     <div class="entryOverview">
       Parse a integer string and return integer value.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">text</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">string being parsed.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">pos</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&gt;
        <div class="entryOverview">parse position.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&nbsp;
            Converted integer value.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line837">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.i18n.DateTimeParse.prototype.parseTimeZoneOffset_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">parseTimeZoneOffset_<span class="args">(<span class="arg">text</span>,&nbsp;<span class="arg">pos</span>,&nbsp;<span class="arg">cal</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Parse time zone offset.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">text</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">the time text to be parsed.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">pos</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&gt;
        <div class="entryOverview">Parse position.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">cal</span>
        : <span class="type"><a href="class_goog_i18n_DateTimeParse_MyDate_.html">goog.i18n.DateTimeParse.MyDate_</a></span>
        <div class="entryOverview">object to hold parsed value.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            True if successful.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line779">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.i18n.DateTimeParse.prototype.skipSpace_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">skipSpace_<span class="args">(<span class="arg">text</span>,&nbsp;<span class="arg">pos</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Skip space in the string.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">text</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">input string.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">pos</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&gt;
        <div class="entryOverview">where skip start, and return back where the skip
    stops.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line477">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.i18n.DateTimeParse.prototype.strictParse"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">strictParse<span class="args">(<span class="arg">text</span>,&nbsp;<span class="arg">date</span>,&nbsp;<span class="arg">opt_start</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
      </div>


     <div class="entryOverview">
       Parse the given string and fill info into date object. This version will
validate the input and make sure it is a validate date/time.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">text</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The string being parsed.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">date</span>
        : <span class="type">goog.date.DateLike</span>
        <div class="entryOverview">The Date object to hold the parsed date.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_start</span>
        : <span class="type">number=</span>
        <div class="entryOverview">The position from where parse should begin.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&nbsp;
            How many characters parser advanced.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line275">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.i18n.DateTimeParse.prototype.subParseDayOfWeek_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">subParseDayOfWeek_<span class="args">(<span class="arg">text</span>,&nbsp;<span class="arg">pos</span>,&nbsp;<span class="arg">cal</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Parse Day of week field.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">text</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">the time text to be parsed.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">pos</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&gt;
        <div class="entryOverview">Parse position.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">cal</span>
        : <span class="type"><a href="class_goog_i18n_DateTimeParse_MyDate_.html">goog.i18n.DateTimeParse.MyDate_</a></span>
        <div class="entryOverview">object to hold parsed value.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            True if successful.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line691">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.i18n.DateTimeParse.prototype.subParseFractionalSeconds_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">subParseFractionalSeconds_<span class="args">(<span class="arg">value</span>,&nbsp;<span class="arg">pos</span>,&nbsp;<span class="arg">start</span>,&nbsp;<span class="arg">cal</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Parse fractional seconds field.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">value</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">parsed numeric value.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">pos</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&gt;
        <div class="entryOverview">current parse position.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">start</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">where this field start.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">cal</span>
        : <span class="type"><a href="class_goog_i18n_DateTimeParse_MyDate_.html">goog.i18n.DateTimeParse.MyDate_</a></span>
        <div class="entryOverview">object to hold parsed value.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            True if successful.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line719">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.i18n.DateTimeParse.prototype.subParseMonth_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">subParseMonth_<span class="args">(<span class="arg">text</span>,&nbsp;<span class="arg">pos</span>,&nbsp;<span class="arg">cal</span>,&nbsp;<span class="arg">value</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Parse Month field.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">text</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">the time text to be parsed.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">pos</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&gt;
        <div class="entryOverview">Parse position.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">cal</span>
        : <span class="type"><a href="class_goog_i18n_DateTimeParse_MyDate_.html">goog.i18n.DateTimeParse.MyDate_</a></span>
        <div class="entryOverview">object to hold parsed value.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">value</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">numeric value if this field is expressed using
     numeric pattern, or -1 if not.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            True if parsing successful.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line623">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.i18n.DateTimeParse.prototype.subParseQuarter_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">subParseQuarter_<span class="args">(<span class="arg">text</span>,&nbsp;<span class="arg">pos</span>,&nbsp;<span class="arg">cal</span>,&nbsp;<span class="arg">value</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Parse Quarter field.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">text</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">the time text to be parsed.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">pos</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&gt;
        <div class="entryOverview">Parse position.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">cal</span>
        : <span class="type"><a href="class_goog_i18n_DateTimeParse_MyDate_.html">goog.i18n.DateTimeParse.MyDate_</a></span>
        <div class="entryOverview">object to hold parsed value.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">value</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">numeric value if this field is expressed using
     numeric pattern, or -1 if not.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            True if parsing successful.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line660">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.i18n.DateTimeParse.prototype.subParseYear_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">subParseYear_<span class="args">(<span class="arg">text</span>,&nbsp;<span class="arg">pos</span>,&nbsp;<span class="arg">start</span>,&nbsp;<span class="arg">value</span>,&nbsp;<span class="arg">part</span>,&nbsp;<span class="arg">cal</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Parse year field. Year field is special because
1) two digit year need to be resolved.
2) we allow year to take a sign.
3) year field participate in abut processing.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">text</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">the time text to be parsed.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">pos</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&gt;
        <div class="entryOverview">Parse position.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">start</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">where this field start.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">value</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">integer value of year.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">part</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></span>
        <div class="entryOverview">the pattern part for this field.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">cal</span>
        : <span class="type"><a href="class_goog_i18n_DateTimeParse_MyDate_.html">goog.i18n.DateTimeParse.MyDate_</a></span>
        <div class="entryOverview">object to hold parsed value.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            True if successful.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line582">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.i18n.DateTimeParse.prototype.subParse_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">subParse_<span class="args">(<span class="arg">text</span>,&nbsp;<span class="arg">pos</span>,&nbsp;<span class="arg">part</span>,&nbsp;<span class="arg">digitCount</span>,&nbsp;<span class="arg">cal</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Protected method that converts one field of the input string into a
numeric field value.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">text</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">the time text to be parsed.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">pos</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&gt;
        <div class="entryOverview">Parse position.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">part</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></span>
        <div class="entryOverview">the pattern part for this field.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">digitCount</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">when &gt; 0, numeric parsing must obey the count.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">cal</span>
        : <span class="type"><a href="class_goog_i18n_DateTimeParse_MyDate_.html">goog.i18n.DateTimeParse.MyDate_</a></span>
        <div class="entryOverview">object that holds parsed value.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            True if it parses successfully.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line498">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.i18n.DateTimeParse.prototype.subparseTimeZoneInGMT_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">subparseTimeZoneInGMT_<span class="args">(<span class="arg">text</span>,&nbsp;<span class="arg">pos</span>,&nbsp;<span class="arg">cal</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Parse GMT type timezone.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">text</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">the time text to be parsed.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">pos</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&gt;
        <div class="entryOverview">Parse position.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">cal</span>
        : <span class="type"><a href="class_goog_i18n_DateTimeParse_MyDate_.html">goog.i18n.DateTimeParse.MyDate_</a></span>
        <div class="entryOverview">object to hold parsed value.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            True if successful.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line739">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
</div>




<h2>Instance Properties</h2>







<div>
       <div class="desc">
         Defined in
         <span class="fn-name">
            <a href="class_goog_i18n_DateTimeParse.html">
              goog.i18n.DateTimeParse
            </a>
         </span>
       </div>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.i18n.DateTimeParse.prototype.patternParts_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">patternParts_</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line132">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
</div>










<div class="section">
  <table class="horiz-rule">


  </table>
</div>



<h2>Static Properties</h2>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.i18n.DateTimeParse.NUMERIC_FORMAT_CHARS_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.i18n.DateTimeParse.</span><span class="entryName">NUMERIC_FORMAT_CHARS_</span>
        : 
     </div>


     <div class="entryOverview">
       Pattern characters that specify numerical field.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line416">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.i18n.DateTimeParse.PATTERN_CHARS_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.i18n.DateTimeParse.</span><span class="entryName">PATTERN_CHARS_</span>
        : 
     </div>


     <div class="entryOverview">
       All acceptable pattern characters.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line409">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.i18n.DateTimeParse.ambiguousYearCenturyStart"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.i18n.DateTimeParse.</span><span class="entryName">ambiguousYearCenturyStart</span>
        : 
     </div>


     <div class="entryOverview">
       Number of years prior to now that the century used to
disambiguate two digit years will begin


     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line147">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>









<div class="section">
  <table class="horiz-rule">


  </table>
</div>
      <!-- Column 1 end -->
    </div>

        <div class="col2">
          <!-- Column 2 start -->
          <div class="col2-c">
            <h2 id="ref-head">Package i18n</h2>
            <div id="localView"></div>
          </div>

          <div class="col2-c">
            <h2 id="ref-head">Package Reference</h2>
            <div id="sideTypeIndex" rootPath="" current="i18n.DateTimeParse"></div>
          </div>
          <!-- Column 2 end -->
        </div>
</div>
</div>

</body>
</html>
